package main 

import "fmt"

var (
	Func1=func(n1 int,n2 int)int{
		return n1+n2
	}
)
//匿名函数
func main(){

	res:=func(n1 int,n2 int) int{
		return n1+n2 
	}(10,20)

	fmt.Println("res=",res)

	x:= func(n1 int,n2 int)int{
		return n1-n2
	}

	a:=x(10,20)
	fmt.Println("a=",a)

	res = Func1(100,200)
	fmt.Println("res=",res)
}